package com.mo.star.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mo.star.pojo.User;
import jakarta.servlet.http.HttpServletRequest;

import java.util.List;

/**
* @author 云赋
* @description 针对表【usertable(数据表2)】的数据库操作Service
* @createDate 2024-08-28 19:30:14
*/
public interface UsertableService extends IService<User> {

    List<User> searchUsersByTags(List<String> tagList);

    User updateUser(User user ,User userLogin);

    /**
     * 获取当前用户信息
     * @param request
     * @return
     */
    User getLoginUser(HttpServletRequest request);

    User getSafetyUser(User originUser);
    User getUserById(String UserId);
    boolean isAdmin(User loginUser);
}
